home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-12-24 | 1.1 KB | 59 lines | [TEXT/PJMM] |
- unit SetValues;
-
- interface
-
- uses
- Globals;
-
- procedure setvalues (var nodetable: hdlarrayhdlnoderecord; var numnodes, numvariables: longint);
-
-
- implementation
-
- procedure setvalues;
-
- var
- i, j, l, m: longint;
-
-
- begin
-
- i := 1;
- while i <= numnodes do
- begin
- l := numnodes + 1 - i;
- j := 1;
- while j <= numvariables do
- begin
- m := numvariables + 1 - j;
- if (nodetable^^[l]^^.lop.index = strvar^^[m]^^) then
- begin
- nodetable^^[l]^^.loptype := 'matrix';
- nodetable^^[l]^^.lop.index := stringof(m);
- end;
- if (nodetable^^[l]^^.rop.index = strvar^^[m]^^) then
- begin
- nodetable^^[l]^^.roptype := 'matrix';
- nodetable^^[l]^^.rop.index := stringof(m);
- end;
- j := j + 1;
- end;
- i := i + 1;
- end;
-
-
- i := 1;
- while i <= numnodes do
- begin
- l := numnodes + 1 - i;
- if nodetable^^[l]^^.lop.index = 'pi' then
- nodetable^^[l]^^.lop.index := stringof(pivalue : 30 : 20);
- if nodetable^^[l]^^.rop.index = 'pi' then
- nodetable^^[l]^^.rop.index := stringof(pivalue : 30 : 20);
- i := i + 1;
- end;
-
- end;
-
-
- end.